﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using TimKen.BussLogic;
using TimKen.DataAccess;

namespace TimKen.Web.User
{
    public partial class Help : TimKen.App.WebPage
    {
        public DataRowCollection drcHelpClass;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BindDL();
            }
        }

        public void BindDL()
        {
            string sql = "select  * from HelpClass Order BY ClassID";
            DataSet ds = DbHelperSQL.Query(sql);
            drcHelpClass = ds.Tables[0].Rows;
        }

        public DataRowCollection GetHelpByClass(int classid)
        {
            ArticleManager am = new ArticleManager();
            DataSet ds = am.GetList(" TypeID=4 and LanguageID=" + this.LanguageID + " AND ClassID=" + classid);
            return ds.Tables[0].Rows;
        }
    }
}